package com.dhcc.bpm.modules.scf.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.NullSerializer;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 利废企业过磅信息表实体类
 */
@Data
@TableName("scf_recycling_weigh_info")
public class ScfRecyclingWeighInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    @TableId(value = "ROW_ID", type = IdType.INPUT)
    private String rowId;

    /**
     * 过磅单号-一次货运多次过磅
     */
    @TableField("WEIGH_NUM")
    @ExcelProperty("利废企业过磅单号")
    private String weighNum;


    @TableField("RENEWABLE_OUT_NUM")
    @ExcelProperty("再生资源企业出库单号")
    private String renewableOutNum;



    /**
     * 进出类别-1进 2出
     */
    @TableField("PASSWAY_TYPE")
    private String passwayType;

    /**
     * 过磅日期
     */
    @TableField("WEIGH_DATE")
    @ExcelProperty("过磅日期")
    private String weighDate;

    /**
     * 车牌号
     */
    @TableField("TRUCK_NUM")
    private String truckNum;

    /**
     * 驾驶证号
     */
    @TableField("LICENSE")
    private String license;

    /**
     * 供销合同编号
     */
    @TableField("CONTRACT_NUM")
    @ExcelProperty("对应供销合同编号")
    private String contractNum;

    /**
     * 商品名称
     */
    @TableField("SPEC_NAME")
    @ExcelProperty("商品名称")
    private String specName;

    /**
     * 货品净重
     */
    @TableField("GOODS_WEIGHT")
    @ExcelProperty("净重(kg）")
    @JsonSerialize(using = ToStringSerializer.class, nullsUsing = NullSerializer.class)
    private BigDecimal goodsWeight;

    /**
     * 重车磅重
     */
    @TableField("FULL_WEIGHT")
    @ExcelProperty("重车磅重(kg）")
    @JsonSerialize(using = ToStringSerializer.class, nullsUsing = NullSerializer.class)
    private BigDecimal fullWeight;

    /**
     * 重车日期
     */
    @TableField("FULL_DATE")
    @ExcelProperty("重车日期")
    private String fullDate;

    /**
     * 重车时间
     */
    @TableField("FULL_TIME")
    @ExcelProperty("重车时间")
    private String fullTime;

    /**
     * 空车磅重
     */
    @TableField("EMPTY_WEIGHT")
    @ExcelProperty("空车磅重(kg）")
    @JsonSerialize(using = ToStringSerializer.class, nullsUsing = NullSerializer.class)
    private BigDecimal emptyWeight;

    /**
     * 空车日期
     */
    @TableField("EMPTY_DATE")
    @ExcelProperty("空车日期")
    private String emptyDate;

    /**
     * 空车时间
     */
    @TableField("EMPTY_TIME")
    @ExcelProperty("空车时间")
    private String emptyTime;

    /**
     * 过磅登记人
     */
    @TableField("WEIGH_RECORDER")
    @ExcelProperty("过磅登记人")
    private String weighRecorder;


    /**
     * 录入人
     */
    @TableField("RECORDER")
    private String recorder;

    /**
     * 录入日期
     */
    @TableField("RECORD_DATE")
    private String recordDate;

    /**
     * 录入时间
     */
    @TableField("RECORD_TIME")
    private String recordTime;


    @TableField("ORG_CODE")
    @ExcelProperty("所属公司编码")
    private String orgCode;
}
